package com.apexsoft.assets.base.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: wangchao
 * @Description:
 * @Date: create in 2021/6/17 11:01
 */
public class MoneyScopeUtil {

    public static Map<String,Long> getScope (Integer index) {
        Map mapResult = new HashMap();
        Long begin = 0L;
        Long end = null;
        if ( index == null || index == 0 || index > 7 ) {
            return null;
        }
        switch(index){
            case 1 :
                begin = 0L;
                end  = 500* 10000L;  //0-500W
                break; //可选
            case 2 :
                begin = 500* 10000L;
                end  = 10000* 10000L; //500W-1亿
                break; //可选
            case 3 :
                begin = 10000* 10000L; //1亿-5亿
                end  = 10000*10000* 5L;
                break; //可选
            case 4 :
                begin = 10000*10000* 5L;//5亿-10亿
                end  = 10000*10000* 10L;
                break; //可选
            case 5 :
                begin = 10000*10000* 10L; //10亿-50亿
                end  = 10000*10000* 50L;
                break; //可选
            case 6 :
                begin = 10000*10000* 50L; //50亿以上
                break; //可选
            default : //可选
               return null;
        }
        mapResult.put("begin",begin);
        mapResult.put("end",end);
        return mapResult;
    }
}
